package me.fanchaoo.web.service;

import me.fanchaoo.web.dto.LoginUserDTO;
import me.fanchaoo.web.request.EmailLoginRequest;
import me.fanchaoo.web.request.LoginRequest;
import me.fanchaoo.web.request.MailCodeRequest;
import me.fanchaoo.web.request.RegisterRequest;

import javax.mail.MessagingException;

public interface LoginService {
    LoginUserDTO login(LoginRequest request) throws Exception;
    void getMailCode(MailCodeRequest request) throws Exception;
    void register(RegisterRequest request);
    LoginUserDTO emailLogin(EmailLoginRequest request) throws Exception;
    void getPassword(RegisterRequest request);
    void loginOut();
}
